<?php
namespace frontend\models;

use Yii;
use yii\base\model;
use common\models\User;

class FindPasswordForm extends model
{
	public $password;
	public $password2;
	public $phone;
    public $code;

	public static function tableName()
    {
        return 'user';
    }

     public function rules()
    {
        return [
            // username and password_hash_hash are both required
            [['phone', 'password','password'], 'required'],

            ['password', 'string', 'min' => 6],

            ['password2', 'compare','compareAttribute'=>'password'],

        ];
    }
/*
    public function attributeLabels()
    {
        return [
            'password_hash' => '当前密码',
            'pass1' => '新密码',
            'pass2' => '确认密码',
        ];
    }*/

	
}